package com.acme.basic;

public class NewCode3 {

    public void line() {
        System.out.println("line1");
        System.out.println("line1");
        System.out.println("line1");
        System.out.println("line1");
        System.out.println("line1");

        System.out.println("new_line2");
        System.out.println("new_line2");
        System.out.println("new_line2");
        System.out.println("new_line2");
        System.out.println("new_line2");

        System.out.println("new_line3");
        System.out.println("new_line3");
        System.out.println("new_line3");
        System.out.println("new_line3");
        System.out.println("new_line3");

        System.out.println("new_line4");
        System.out.println("new_line4");
        System.out.println("new_line4");
        System.out.println("new_line4");
        System.out.println("new_line4");
        System.out.println("new_line4");

        System.out.println("new_line5");
        System.out.println("new_line5");
        System.out.println("new_line5");
        System.out.println("new_line5");
        System.out.println("new_line5");
        System.out.println("new_line5");

        System.out.println("new_line6");
    }


    public void branch(int x) {
        if (x == 1) {
            System.out.println("分支1");
        } else if (x == 2) {
            System.out.println("分支2");
        } else if (x == 3) {
            System.out.println("分支2");
        } else if (x == 4) {
            System.out.println("分支2");
        } else {
            System.out.println("分支3");
        }
    }
}
